package zuoye;
import java.util.Arrays;
import java.util.Random;
public class zuoye3 {
	public static void main(String[] args) {
		int[] a={1,2,3,4,5};
		Random r=new Random();
		for(int i=0,j=0;j<a.length;j++){
			i=r.nextInt(4);
			int temp;
			temp=a[j];
			a[j]=a[i];
			a[i]=temp;
		}
		System.out.println(Arrays.toString(a));
	}
}
